#ifndef TPPMWIDGET_H
#define TPPMWIDGET_H

#include <QWidget>
#include "errortodo.h"

namespace Ui {
class TPPMWidget;
}

class TPPMWidget : public QWidget
{
    Q_OBJECT
    
public:
    explicit TPPMWidget(QWidget *parent = 0);
    ~TPPMWidget();
    
public slots:    
    void updateModelOnoff(int value);

    void updatePMAlarmValue(int value);
    
    void updateCO2AlarmValue(int value);
    
    void updateHumRhAlarmValue(int value);
    
    void updateUIParameterGetValue(int value);
    
    void updateBacklitDelay(int value);

private:
    Ui::TPPMWidget *ui;

    ErrorToDo *error;

    int initDataFromProjectDB();
};

#endif // TPPMWIDGET_H
